<?php /* Smarty version Smarty-3.1.15, created on 2016-10-07 16:02:51
         compiled from "D:\Program Files (x86)\USBWebserver v8.6\root\jh_source\admin\track\include\template\one_page_shop\home_advert.tpl" */ ?>
<?php /*%%SmartyHeaderCode:528657f738313bfb77-87478780%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7d6e37529d4c0fa65cdebf0b45e267152bd4ea5f' => 
    array (
      0 => 'D:\\Program Files (x86)\\USBWebserver v8.6\\root\\jh_source\\admin\\track\\include\\template\\one_page_shop\\home_advert.tpl',
      1 => 1475827370,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '528657f738313bfb77-87478780',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_57f7383142d199_94702991',
  'variables' => 
  array (
    'osadmin_action_alert' => 0,
    'osadmin_quick_note' => 0,
    'advert' => 0,
    'adimg_info' => 0,
    'osadmin_action_confirm' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57f7383142d199_94702991')) {function content_57f7383142d199_94702991($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_alert']->value;?>

<?php echo $_smarty_tpl->tpl_vars['osadmin_quick_note']->value;?>


<div class="block">
    <a href="#page-stats" class="block-heading" data-toggle="collapse">广告图管理</a>

    <div id="page-stats" class="block-body collapse in">
        <table class="table table-striped">
            <thead>
            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">广告图</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">张数</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">预览</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">操作</th>
            </tr>
            </thead>
            <tbody>

            <tr style="background:#fff;">
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                    <?php  $_smarty_tpl->tpl_vars['adimg_info'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['adimg_info']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['advert']->value['advert_imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['adimg_info']->key => $_smarty_tpl->tpl_vars['adimg_info']->value) {
$_smarty_tpl->tpl_vars['adimg_info']->_loop = true;
?>
                <img width="56" height="56" src="<?php echo $_smarty_tpl->tpl_vars['adimg_info']->value;?>
"/>
                    <?php } ?>
                </td>
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><?php echo $_smarty_tpl->tpl_vars['advert']->value['count'];?>

                </td>
                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><a class="btn btn-info"
                                                                                               href="<?php echo @constant('SHOP_URL');?>
"
                                                                                               target="_blank"
                                                                                               title="预览"
                                                                                               alt="预览">预览</a></td>

                <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                    <a class="btn btn-info"
                       href="home_advert.php"
                       target="_self" title="上传广告图"
                       alt="上传广告图">上传广告图</a></td>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_confirm']->value;?>


<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
